//
//  GGMacroDefinitin.h
//  unzip
//
//  Created by yg on 2021/11/16.
//

#ifndef GGMacroDefinitin_h
#define GGMacroDefinitin_h

#define GGSafeAreaBottom (GGTools.safeAreaBottom)
#define GGSafeAreaTop (GGTools.safeAreaTop)
#define GGSafeStatusBarBottom (GGTools.safeStatusBarBottom)
#define GGSafeNavigationBottom (GGTools.safeNavigationBottom)
#define GGZoomProportion (GGTools.zoomProportion)
#define GGMainWindow (GGTools.mainWindow)
#define GGScreenHeight [[UIScreen mainScreen] bounds].size.height
#define GGScreenWidth [[UIScreen mainScreen] bounds].size.width
#define GGWindowHeight [GGMainWindow bounds].size.height
#define GGWindowWidth [GGMainWindow bounds].size.width

#define GGWeakSelf __weak typeof(self) weakSelf = self;
#define GGStrongSelf __weak typeof(weakSelf) strongSelf = weakSelf;

#define GGColor(systemColorName) [UIColor systemColorName]
#define GGRGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define GGRGB(r,g,b) RGBA(r,g,b,1.0f)
#define GGRGB16(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define GGFont(fontSize) [UIFont systemFontOfSize:fontSize]
#define GGBFont(fontSize) [UIFont boldSystemFontOfSize:fontSize]

#define GGImageName(imageName) [UIImage imageNamed:imageName]

#endif /* GGMacroDefinitin_h */
